IfSo\Libs\Detection\MobileDetect B

Total Complexity 87
Dependencies 1
Dependents 1
Total lines 1,203
Lines of code 261
Logical lines of code 137
Comment lines 535
Methods 31
Properties 13

Methods 31

Method Rating Maintainability Complexity Lines of code
version()
A
52 9 23
isMobile()
S
55 7 21
checkHttpHeadersForMobile()
S
57 7 17
setUserAgent()
S
55 6 20
isTablet()
S
58 6 16
match()
S
58 5 15
setCfHeaders()
S
58 5 14
setHttpHeaders()
S
61 5 12
getHttpHeader()
S
60 4 13
matchUAAgainstKey()
S
61 4 13
matchDetectionRulesAgainstUA()
S
63 4 11
is()
S
67 3 9
getRules()
S
64 2 12
__call()
S
67 2 7
prepareVersionNo()
S
65 2 8
getProperties()
S
81 1 3
getOperatingSystems()
S
81 1 3
__construct()
S
77 1 4
getBrowsers()
S
81 1 3
getUserAgents()
S
80 1 3
getScriptVersion()
S
80 1 3
getPhoneDevices()
S
81 1 3
getMatchesArray()
S
82 1 3
getMatchingRegex()
S
82 1 3
getUserAgent()
S
82 1 3
prepareUserAgent()
S
75 1 4
getCfHeaders()
S
82 1 3
getUaHttpHeaders()
S
81 1 3
getMobileHeaders()
S
81 1 3
getHttpHeaders()
S
82 1 3
getTabletDevices()
S
81 1 3